R Version: RStudio 2021.09.0+351 “Ghost Orchid” Release (077589bcad3467ae79f318afe8641a1899a51606, 2021-09-20) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

plots

Column

Scatter plot of bill length vs bill depth

Column

Chart B

Chart C

data

---
title: "Dashboarding Demo"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    social: ["menu"] #to have links to social media
    source_code: embed #link to get source code
---
R Version:
RStudio 2021.09.0+351 "Ghost Orchid" Release (077589bcad3467ae79f318afe8641a1899a51606, 2021-09-20) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

```{r setup, include=FALSE}
library(flexdashboard)
# R version:  RStudio 2021.09.0+351 "Ghost Orchid" Release 
# (077589bcad3467ae79f318afe8641a1899a51606, 2021-09-20) for Windows
# Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 
# QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
library(tidyverse)
library(palmerpenguins)
library(plotly)
library(DT)
library(fontawesome)
#load data from palmerpenguins
data("penguins")
head(penguins)
```

plots
======================================================================

Column {data-width=650}
-----------------------------------------------------------------------

### Scatter plot of bill length vs bill depth

```{r}
a = penguins %>% ggplot(aes(x = bill_length_mm, y = bill_depth_mm, color = species))+
  geom_point()
ggplotly(a)
#htmlwidgets.org & Showcase for more html options; try leaflet (interactive maps)
# -also check the Gallery for registered widgets to try
```

Column {data-width=350}
-----------------------------------------------------------------------

### Chart B

```{r}
penguins %>% ggplot(aes(x = body_mass_g, y = sex, fill = sex))+
  geom_boxplot()
```

### Chart C

```{r}
penguins %>% ggplot(aes(x = flipper_length_mm, fill = species))+
  geom_histogram()+
  facet_wrap(~species)
```

data
=========================================================================

```{r}
penguins %>% datatable(extensions = "Buttons", 
                       options = list(dom = "Blfrtip",
                                      buttons = c("copy", "csv", "excel",
                                                  "pdf", "print")))
#B for Buttons, l for length, t for table, p for pagination, f for _, r for _, i for _
# lfrtip is the default
#Go to datatables.net to see all options to customize html table

```